<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;

class SchoolLikeUsers extends Model
{
    use SoftDeletes;
    protected $table = 'school_like_users';
    protected $guarded = [];

    public function student()
    {
        return $this->belongsTo(User::class, 'student_id', 'id');
    }

    public function school()
    {
        return $this->belongsTo(SchoolInfo::class, 'school_id', 'id');
    }
}
